﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FishTank
{
    class Pump
    {
     
        int reservoirSize = 10;

        public void turnPumpOn(ref double waterLevel, ref double reservoirWaterLevel)
        {
            if (reservoirWaterLevel > 0)
            {
                double temp = 10.0 / reservoirSize;
                reservoirWaterLevel -= temp;
                waterLevel += 0.1;
            }
            else
            {
                waterLevel += 0;
            }
        }

        public void setReservoirSize(int newReservoirSize)
        {
            reservoirSize = newReservoirSize;
        }

        public void setReservoirWaterLevel( double newReservoirWaterLevel, ref double reservoirWaterLevel)
        {
            reservoirWaterLevel = newReservoirWaterLevel;
        }
    }
}
